home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-02-05 | 1.4 KB | 63 lines | [TEXT/MSCT] |
- //
- // Used Colors.M1S: show color list for document
- //
-
- //
- // *************************************
- // Procedures
- // *************************************
- //
-
- proc colorProc
-
- print
- Left(
- it.color_type
- +" ",16)+
- Left(
- it.color_model
- +" ",16)
- + it.name
-
- endproc
-
- //
- // **************************************
- // The actual script
- // **************************************
- //
- // Save 'it' in 'theJob' - 'it' is under control of MarkzONE and
- // changes value quite often
- //
-
- theJob = it
-
- //
- // Gimme a title
- //
- print "Used Color List for " + theJob.name
- print "Color Type Color Model Color Name"
- print "---------- ----------- ----------"
-
- //
- // Gimme a color list: execute 'colorProc' (see above) for each of the colors
- // encountered during scan. Scan will start from 'theJob' and then
- // descend through the job's treestructure of objects - anything that is
- // either used, contained in, overlapping with - so it will
- // find all colors used by boxes, all colors used by contained images,
- // ... and so on...
- //
- on color do colorProc
- scan theJob links uses,contains,overlaps
- //
- // 'scan reset' clears the 'on color' - it is a good idea to
- // do scan reset as soon as possible to avoid unexpected results
- // because of an 'on' statement that is still in effect.
- scan reset
-
- //
- // Gimme a line
- //
- print "---------------------------------------"
-
-